package org.freedom.fastdevpt.core.base;


import java.util.List;
import java.util.Map;

public interface BaseDao<K, T, Q> {

	T getByPk(K pk);

	List<T> getByQuery(Q q);

	List<Map<String, Object>> getForList(Q q);

	Long getCountByQuery(Q q);

	void save(T t);

	void batchSave(final List<T> list);
 
	int update(T t);

	int batchdelete(K[] pk);

	int delete(K pk);

}
